/**
 * Project Name:fire-industry-DM-center
 * File Name:DmMapNews.java
 * Package Name:com.firestone.bean.entity.elasticsearch.dm
 * Date:2018年4月18日上午10:25:59
 *
*/

package com.firestone.bean.entity.elasticsearch.dm;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Setting;

import com.firestone.bean.entity.elasticsearch.nested.Category;

/**
 * @Description: TODO(新闻表)
 * @author lvxc
 * @date 2018年4月18日 上午10:25:59
 */
@Document(indexName = "dm_map_news", type = "index", createIndex = false)
@Setting(settingPath = "/setting/setting.json")
public class DmMapNews implements Serializable{

    private static final long serialVersionUID = 1L;
    
    /**
     * @Fields add_time : 
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String add_time;
    
    /**
     * @Fields author : TODO(作者)
     */
    @Field(type = FieldType.keyword)
    private String author;
    
    /**
     * @Fields category : 
     */
    @Field(type = FieldType.Nested)
    private List<Category> category;
    
    /**
     * @Fields check_manager_id : 
     */
    @Field(type = FieldType.keyword)
    private String check_manager_id;
    
    /**
     * @Fields check_state : 
     */
    @Field(type = FieldType.keyword)
    private String check_state;
    
    /**
     * @Fields check_time :
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String check_time;
    
    /**
     * @Fields classification :
     */
    @Field(type = FieldType.keyword)
    private String classification;
    
    /**
     * @Fields content : TODO(内容)
     */
    @Field(type = FieldType.text ,analyzer="ik_max_word")
    private String content;
    
    /**
     * @Fields created : 
     */
    @Field(type = FieldType.keyword)
    private String created;
    
    /**
     * @Fields del_flag : 
     */
    @Field(type = FieldType.keyword)
    private String del_flag;
    
    /**
     * @Fields detail_url : 
     */
    @Field(type = FieldType.keyword)
    private String detail_url;
    
    /**
     * @Fields fingerprint : 
     */
    @Field(type = FieldType.keyword)
    private String fingerprint;
    
    /**
     * @Fields good_num : TODO(点赞数)
     */
    @Field(type = FieldType.Integer)
    private String good_num;
    
    /**
     * @Fields host : TODO(抓取站点)
     */
    @Field(type = FieldType.keyword)
    private String host;
    
    /**
     * @Fields hot_mark : 
     */
    @Field(type = FieldType.Integer)
    private String hot_mark;
    
    /**
     * @Fields is_original : TODO(是否医健)
     */
    @Field(type = FieldType.keyword)
    private String is_original;
    
    /**
     * @Fields ismedical : 
     */
    @Field(type = FieldType.Integer)
    private String ismedical;
    
    /**
     * @Fields needPublish : 
     */
    @Field(type = FieldType.keyword)
    private String needPublish;
    
    /**
     * @Fields news_img : 
     */
    @Field(type = FieldType.text ,index=false)
    private String news_img;
    
    /**
     * @Fields news_type : TODO(1 =>融资新闻
                                2 =>政策
                                3 =>活动
                                0 =>默认值，普通新闻)
     */
    @Field(type = FieldType.Integer)
    private String news_type;
    
    /**
     * @Fields public_sort_time : 
     */
    @Field(type = FieldType.keyword)
    private String public_sort_time;
    
    /**
     * @Fields publish_time : TODO(发布时间)
     */
    @Field(type = FieldType.keyword)
    private String publish_time;
    
    /**
     * @Fields publish_timestamp : 
     */
    @Field(type = FieldType.keyword )
    private String publish_timestamp;
    
    /**
     * @Fields read_num : TODO(阅读数)
     */
    @Field(type = FieldType.keyword)
    private String read_num;
    
    /**
     * @Fields relation_project_id : 
     */
    @Field(type = FieldType.text ,analyzer="whitespace")
    private String relation_project_id;
    
    /**
     * @Fields simhash : 
     */
    @Field(type = FieldType.keyword)
    private String simhash;
    
    /**
     * @Fields source : TODO(来源)
     */
    @Field(type = FieldType.keyword)
    private String source;
    
    /**
     * @Fields status : 
     */
    @Field(type = FieldType.keyword)
    private String status;
    
    /**
     * @Fields subtitle : TODO(副标题)
     */
    @Field(type = FieldType.text ,analyzer="ik_max_word")
    private String subtitle;
    
    /**
     * @Fields summary : TODO(摘要)
     */
    @Field(type = FieldType.text ,analyzer="ik_max_word")
    private String summary;
    
    /**
     * @Fields title : TODO(标题)
     */
    @Field(type = FieldType.text ,analyzer="ik_max_word")
    private String title;
    
    /**
     * @Fields type : 
     */
    @Field(type = FieldType.keyword)
    private String type;
    
    /**
     * @Fields update_time : TODO(更新时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String update_time;
    
    /**
     * @Fields url_id : 
     */
    @Field(type = FieldType.keyword)
    private String url_id;

    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public List<Category> getCategory() {
        return category;
    }

    public void setCategory(List<Category> category) {
        this.category = category;
    }

    public String getCheck_manager_id() {
        return check_manager_id;
    }

    public void setCheck_manager_id(String check_manager_id) {
        this.check_manager_id = check_manager_id;
    }

    public String getCheck_state() {
        return check_state;
    }

    public void setCheck_state(String check_state) {
        this.check_state = check_state;
    }

    public String getCheck_time() {
        return check_time;
    }

    public void setCheck_time(String check_time) {
        this.check_time = check_time;
    }

    public String getClassification() {
        return classification;
    }

    public void setClassification(String classification) {
        this.classification = classification;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(String del_flag) {
        this.del_flag = del_flag;
    }

    public String getDetail_url() {
        return detail_url;
    }

    public void setDetail_url(String detail_url) {
        this.detail_url = detail_url;
    }

    public String getFingerprint() {
        return fingerprint;
    }

    public void setFingerprint(String fingerprint) {
        this.fingerprint = fingerprint;
    }

    public String getGood_num() {
        return good_num;
    }

    public void setGood_num(String good_num) {
        this.good_num = good_num;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getHot_mark() {
        return hot_mark;
    }

    public void setHot_mark(String hot_mark) {
        this.hot_mark = hot_mark;
    }

    public String getIs_original() {
        return is_original;
    }

    public void setIs_original(String is_original) {
        this.is_original = is_original;
    }

    public String getIsmedical() {
        return ismedical;
    }

    public void setIsmedical(String ismedical) {
        this.ismedical = ismedical;
    }

    public String getNeedPublish() {
        return needPublish;
    }

    public void setNeedPublish(String needPublish) {
        this.needPublish = needPublish;
    }

    public String getNews_img() {
        return news_img;
    }

    public void setNews_img(String news_img) {
        this.news_img = news_img;
    }

    public String getNews_type() {
        return news_type;
    }

    public void setNews_type(String news_type) {
        this.news_type = news_type;
    }

    public String getPublic_sort_time() {
        return public_sort_time;
    }

    public void setPublic_sort_time(String public_sort_time) {
        this.public_sort_time = public_sort_time;
    }

    public String getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(String publish_time) {
        this.publish_time = publish_time;
    }

    public String getPublish_timestamp() {
        return publish_timestamp;
    }

    public void setPublish_timestamp(String publish_timestamp) {
        this.publish_timestamp = publish_timestamp;
    }

    public String getRead_num() {
        return read_num;
    }

    public void setRead_num(String read_num) {
        this.read_num = read_num;
    }

    public String getRelation_project_id() {
        return relation_project_id;
    }

    public void setRelation_project_id(String relation_project_id) {
        this.relation_project_id = relation_project_id;
    }

    public String getSimhash() {
        return simhash;
    }

    public void setSimhash(String simhash) {
        this.simhash = simhash;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getUrl_id() {
        return url_id;
    }

    public void setUrl_id(String url_id) {
        this.url_id = url_id;
    }
    

}

